{% extends 'base.html' %}

{% block content %}
    {% if types %}
    	<p>Select what kind of test to create</p>
    	{% for type in types %}
            <form action="/test/create_test/" methods="post">
            	<li>{{ type.type }}
            		<INPUT TYPE="button" VALUE="Create {{type.type}}" onClick="parent.location='{{type.type}}'">
            		<td><a href="/test/delete/{{ type.id }}/">Delete</a></td>
            	</li>
            </form>
        {% endfor %}
    {% else %}
        <p>There are no types in the database.</p>
    {% endif %}
{% endblock %}
